<!DOCTYPE html>
<html class="no-js">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="./assets/favicon.png">
  <title>无效请求-惠通支付</title>
  <link href="./css/normalize.css" rel="stylesheet" type="text/css" />
  <link href="./css/main.css" rel="stylesheet" type="text/css" />
  <style>
    html,
    body {
      width: 100%;
      height: 100%;
    }

    .err-msg-wrap {
      width: 100%;
      height: 100%;
      justify-content: flex-start;
      padding-top: 100px;
      align-items: center;
      box-sizing: border-box;
      overflow: hidden;
    }

    .error-img {
      width: 205px;
    }

    .err-txt {
      font-size: 14px;
    }
  </style>
</head>

<body>
  <div class="flex-col err-msg-wrap">
    <img src="./assets/error.png" class="error-img" alt="">
    <p class="err-txt" id="errMsg">请求出错了~</p>
  </div>

  <script type="text/javascript">
    //  获取地址栏的参数
    function getQueryString(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
      var r = window.location.search.substr(1).match(reg);
      if (r != null) return unescape(r[2]);
      return null;
    }

    var errMsg = getQueryString("errMsg");
    if (errMsg) {
      errMsg = decodeURIComponent(errMsg);
      document.getElementById("errMsg").innerText = errMsg;
    }
  </script>
</body>

</html>